#include <nice2d/component.h>

IMPLEMENT_OBJECT(Component, Serializer)

Component::Component(NodePointer object):
    owner(object)
{
}

Component::~Component()
{
}

void Component::setOwner(NodePointer node)
{
    owner = node;
}

std::weak_ptr<Node> Component::getOwner() const
{
    return owner;
}

void Component::update(float deltaTime)
{
    (void)deltaTime;
}

PTree Component::serialize()
{
    return PTree();
}

void Component::deserialize(const PTree &node)
{
    (void)node;
}
